package com._520it.wms.query;

import lombok.Data;

/**
 * Created by Jon on 2017/11/1.
 */
@Data
public class QueryObject {
      //分页的数据
          private int currentPage = 1;//当前页
          private int pageSize = 5;//每页显示的数据数
          //设置当前页从哪个索引开始查找
          public int getStartIndex(){
              return (currentPage - 1) * pageSize;
          }
}
